<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a = 3;
        if(a <= 0){
            console.log("小于0");
            
        }else if(a == 0){
            console.log("等于0");
            
        }else if(a >= 0){
            console.log("大于0");
            
        }

        if(a% 1== 0){
            console.log("是整数");
            
        }else{
            console.log("不是整数");
            
        }


        var b = 4;

        if(b % 2 == 0 ){
            console.log('是偶数');
            
        }else{
            console.log("不是偶数");
            
        }


        var height = 159;
        var weight = 120;

        if((height-108) * 2 ==weight + 10 || (height-108) * 2 ==weight - 10){
            console.log("十分合适");
            
        }else{
            console.log("我觉得不行");
            
        }




        // 下午练习


        var c = 70;

        switch(true){
            case c >= 90  &&  c<= 100:
            console.log("A级");break;
            case c >= 80  &&  c<= 89:
            console.log("B级");break;
            case c >= 70  &&  c<= 79:
            console.log("C级");break;
            case c >= 60  &&  c<= 69:
            console.log("D级");break;
            case c <= 60 :
            console.log("E级");break;
            default:
            console.log("输入100以内的分数");
            
        }


        var month = 4;
        switch(true){
            case month == 1:
            case month == 3:
            case month == 5:
            case month == 7:
            case month == 8:
            case month == 10:
            case month == 12:
            console.log("本月有31天");
            break;
           
            case month == 4:
            case month == 6:
            case month == 9:
            case month == 11:
            console.log("本月有30天");
            break;
            
            case month == 2:
            console.log("本月有28或者29天");
            

        }



         var money = 10000;
         var sum = 0;
        for(var i=1;i <= 10;i++){
           
            money = money*(1+0.05);
            sum += money*12;
        }
        console.log(money);
        console.log(sum);



        for(var h=1; h < 100;h++){
            if(h % 7 ===0 || h%10 ===7)
            console.log(h);
            
        }

        var i = 1 ;
        while(i<=100 ){
            if(i%2 !==0){
                console.log(i);
                
            }
            i++;
        }
    </script>
</body>
</html>